package com.ruoyi.his.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 处方药品对象 new_his_prescription
 *
 * @author vvjh
 * @date 2025-04-02
 */
public class NewHisPrescription extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 处方名称 */
    @Excel(name = "处方名称")
    private String prescriptionName;

    /** 处方id */
    @Excel(name = "处方id")
    private Long prescriptionId;

    /** 处方数量 */
    @Excel(name = "处方数量")
    private Long quantity;

    /** 金额（单价*数量） */
    @Excel(name = "金额", readConverterExp = "单=价*数量")
    private BigDecimal amount;

    /** 就诊id */
    @Excel(name = "就诊id")
    private Long treatId;

    /** 支付状态(已支付，未支付，已退费） */
    @Excel(name = "支付状态(已支付，未支付，已退费）")
    private String state;

    public void setPrescriptionName(String prescriptionName)
    {
        this.prescriptionName = prescriptionName;
    }

    public String getPrescriptionName()
    {
        return prescriptionName;
    }
    public void setPrescriptionId(Long prescriptionId)
    {
        this.prescriptionId = prescriptionId;
    }

    public Long getPrescriptionId()
    {
        return prescriptionId;
    }
    public void setQuantity(Long quantity)
    {
        this.quantity = quantity;
    }

    public Long getQuantity()
    {
        return quantity;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setTreatId(Long treatId)
    {
        this.treatId = treatId;
    }

    public Long getTreatId()
    {
        return treatId;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("prescriptionName", getPrescriptionName())
                .append("prescriptionId", getPrescriptionId())
                .append("quantity", getQuantity())
                .append("amount", getAmount())
                .append("treatId", getTreatId())
                .append("state", getState())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
